import service from "@/utils/request.js";

const adminApi = {
    login(admin){
        return service.post(`/admin/login`,admin)
    },
    adminInfo(){
        return service.get(`/admin/info`)
    },
    update(admin){
        return service.put(`/admin/update`,admin)
    },
    resetPassword(passwords){
        return service.put(`/admin/resetPassword`,passwords)
    }

}
export default adminApi